<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=0,user-scalable=0">
[#include "/wap/include/static.html"]
    <link rel="stylesheet" href="${path}/resources/wap/css/me/wraparound.css"/>
</head>
<body>
<style>
    .sel{
        border-bottom: 0.0853333333rem solid #ff5600;
    }

</style>
<!--头部-->
<div id="header">
    <div class="left"  onclick="window.location.href='${path}/wap/member'">
        <img id="goBack" src="${path}/resources/wap/img/invest/back.png">

    </div>
    <div class="center">
        我的券包
    </div>

</div>

<div class="choice">
    <div class="option particulars-head  [#if status=='0']sel[/#if]" ><a href="${path}/wap/member/redpacket/list?status=0">未使用</a></div>
    <div class="option audit-data-head [#if status=='1']sel[/#if]" ><a href="${path}/wap/member/redpacket/list?status=1">已使用</a></div>
    <div class="option record-headAA [#if status==-1]sel[/#if]"   ><a href="${path}/wap/member/redpacket/list?status=-1">已过期</a></div>
</div>
<!--未使用-->
<div class="contents">

<!--已过期-->
<div class="record particulars" id="record">
    [#--<div class="ticket">--]
        [#--<div class="ticket-left">--]
            [#--<div class="left-top"><span class="number">110</span><span class="unit">元</span></div>--]
            [#--<div class="left-next">满500元可用</div>--]

        [#--</div>--]
        [#--<div class="ticket-right">--]
            [#--<div class="right-top">加息券</div>--]
            [#--<div class="right-center">适用刚注册没投资过的用户</div>--]
            [#--<div class="right-next">2017.11.25-2017.12.25</div>--]
        [#--</div>--]
    [#--</div>--]
</div>
</div>
<!--底部-->
[#include "/wap/include/footer.ftl"]
</body>

<script>
    var page = 1;
    $(function(){
        $('.contents').dropload({
            scrollArea : window,
            loadDownFn : function(me){
                next(page);
            }
        });

    });
    next(1);
    function next(page){
        ajax({
            url: "${path}/wap/member/redpacket/list",
            type: "POST",
            dataType: "text",
            cache: false,
            data:{"currentPage":page,"status":${status}},
            success: function(result) {
                $("#record").append(result);

                page = page+1;

            },error:function(result){

            }
        });


    }
</script>

<script src="${path}/resources/wap/js/load/dropload.min.js"></script>
</html>